package com.heima.App;

import com.heima.Service.StudentService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class AppStudent {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext cpac =
                new ClassPathXmlApplicationContext("ApplicationContext.xml");
        StudentService studentService = (StudentService) cpac.getBean("studentService");
        studentService.one();
    }
}
